Fix #1459: Add Capture Full Page Screenshot#1762
Fix #1459: Add Capture Full Page Screenshot#1762kumy wants to merge 2 commits intorobotframework:masterfrom
Conversation
|
Anyone able to review please? |
|
I am not anymore maintaining this library, ping @emanlove But in my opinion having new keyword is not good idea, just have argument for the existing one is better. |
|
Thanks for your reply. If there is no new keyword, then is there a way to set the argument to I was using it like this: |
|
I agree that an additional separate keyword would not be preferred. One problem I see is adding a parameter to the keyword ( The other issue is that |
|
So if I understand correctly,
For 2., I've not yet any idea how to do that. Do you have existing code example from which I could learn from? Thanks |
|
One technique would be to use the hasattr function to check and if if the |
|
@emanlove Hello, I've finally done the requested changes 😄
Could be used like: *** Settings ***
Library SeleniumLibrary run_on_failure=Capture Full Page Screenshot # […]
# […]
*** Keywords ***
Capture Full Page Screenshot
Capture Page Screenshot full_screen=TrueOr by using Register Keyword To Run On Failure Capture Full Page ScreenshotThanks for your review |
|
Hi, is there anything else I can do? Thanks |
|
Not sure why the CI tests didn't run. Initial quick review doesn't seem to indicate anything. Doing some more in depth looking .. |
|
Hello |
Please find PR to allow capture full page screenshot. It use the functions linked per @aaltat in #1459 (comment)
This add a new keyword
Capture Full Page Screenshot. It also add a boolean parameterfull_screentoCapture Page Screenshot.